package day10;
import java.util.Locale;
public class learn3 {
    public static void main(String[] args) {
        //创建两个对象
        Character th=new Character('A');
         Character th1=new Character('b');
         //比较是否相等
        if(th.equals(th1)){
            System.out.println("相等");
        }else {
            System.out.println("不相等");
            //输出两个字符
             String num=th.toString();
             String num1=th1.toString();
             System.out.println(num);
             System.out.println(num1);
             //转小写
            System.out.println("*******************");
              String first=num.toLowerCase();
             System.out.println(first);
             String second=num1.toLowerCase();
             System.out.println(second);
             if(first.equals(second)){
                 System.out.println("相等");
             }else{
                 System.out.println("不相等");
             }
        }
    }
}
